package com.example.experiment3intent

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView

class ResultActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_result)

        val result = intent.getStringExtra(EXTRA_MESSAGE)
        val textResult = findViewById<TextView>(R.id.textViewResult).apply {
            text = result
        }
//        textResult.setText("set text func")
//        textResult.text = "setter method"
    }
}